package sdk.webview.fmc.com.fmcsdk.check.adapter;

import android.annotation.SuppressLint;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import java.util.List;

import sdk.webview.fmc.com.fmcsdk.R;

public class PeoSelectAdapter extends RecyclerView.Adapter<PeoSelectAdapter.ViewHolder> {

    private Context mContext;
    private List<String> list;


    public PeoSelectAdapter(Context context, List<String> list) {
        this.mContext = context;
        this.list = list;
    }

    @NonNull
    @Override
    public PeoSelectAdapter.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
        return new PeoSelectAdapter.ViewHolder(LayoutInflater.from(mContext).inflate(R.layout.item_peo_select, null));
    }

    @Override
    public void onBindViewHolder(@NonNull PeoSelectAdapter.ViewHolder holder, @SuppressLint("RecyclerView") final int position) {

        final String mediaFolder = list.get(position);



    }

    @Override
    public int getItemCount() {
        return list == null ? 0 : list.size();
    }

    class ViewHolder extends RecyclerView.ViewHolder {

        private TextView mFolderName;

        public ViewHolder(View itemView) {
            super(itemView);
            //mFolderName = itemView.findViewById(R.id.tv_item_folderName);
        }
    }

    }
